<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/taglib/jstl.jsp" %>

<div>
	<table class="left-table" style="table-layout:fixed;word-wrap:break-word;">
	<tr>
		<th width="60" class="first">No.</th>
		<th width="100">아이디</th>
		<th width="350">타입 명칭</th>
		<th width="150">Registrant</th>
		<th width="120">Date</th>
		<th width="140" class="last">Property</th>
	</tr>
	
	<c:set var="list" value="${cdTpList}" />
	<c:set var="indexNo" value="${pageNavi.indexNo + 1}" />
	<c:choose>
		<c:when test="${not empty list}">
			<c:forEach var="items" items="${list}" varStatus="i">
			<tr class="itemRows">
				<td>${indexNo - i.count}</td>
				<td>${items.cdTpId}</td>
				<td>${items.cdTpAlias}</td>
				<td>${items.cdTpRegId}</td>
				<td>${items.cdTpRegDate}</td>
				<td>
					<input type="button" name="detailBtn" value="상세" />
					<c:if test="${sysBase.sysChmod >= 7}">
						<input type="button" name="reviseBtn" value="수정" />
						<c:if test="${items.cdTpId ne cfn:getCodeType(\"Del\")}">
							<input type="button" name="delBtn" value="삭제" />
						</c:if>
					</c:if>
				</td>
			</tr>
			</c:forEach>
		</c:when>
		<c:otherwise>
			<tr><td colspan="6">등록된 코드 유형이 없습니다.</td></tr>
		</c:otherwise>
	</c:choose>
	</table>
</div>

<jsp:include page="/WEB-INF/layouts/inc/pageNavigation.jsp" flush="false">
	<jsp:param name="url" value="/template/system/codeType/_listConts" />
	<jsp:param name="rtnDiv" value=".div-resultList" />
	<jsp:param name="frmData" value="frmPageNavi" />
</jsp:include>

<script type="text/javascript" src="/resources/js/views/template/system/codeType/_listConts.js"></script>